#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
using namespace std;
int main(){
	string s1 = "pintia";
	string s2 = "Pintia";
	string s;
	string temp = "";
	getline(cin,s);
	char before = '0';
	int count = 0;
	for(int i = 0;i < s.length();i++){
		if(s[i]==' ' ||s[i]==',' ||s[i]=='.'){
			if(temp==s1 || temp==s2){
				count++;
			}
			temp = "";
		}
		else{
			temp += s[i];
		}
		before = s[i];
	}
	if(before!='0' && (temp==s1 || temp==s2)) count++;
	cout << count << endl;
	if(count==0) cout << "wu gan";
	else if(count>3) cout << "zhen ai la";
	else cout << "you ai";
	
	return 0;
}

